package com.yunpeng.aidevice.dao.model.entity;

import com.yunpeng.aidevice.dao.model.BaseEntityDO;

import java.time.LocalDateTime;

/**
 * <p>
 * 用户实体
 * </p>
 *
 * @author hemw
 * @since 2020-04-26
 */
public class UserDO extends BaseEntityDO {

    private static final long serialVersionUID = 1L;

    /**
     * 主要的组织结构代码
     */

    private String organizationCode;

    /**
     * 主要的组织结构路径
     */

    private String organizationPath;

    /**
     * 组织结构名称
     */

    private String organizationName;

    /**
     * 用户手机号码
     */

    private String phone;

    /**
     * 登录密码
     */

    private String password;

    /**
     * 性别
     */

    private Integer sex;

    /**
     * 邮箱
     */

    private String email;

    /**
     * 状态
     */

    private String state;

    /**
     * 失效时间
     */

    private LocalDateTime invalidDate;

    /**
     * 人脸照片地址
     */

    private String faceImgUrl;

    /**
     * 归属商户代码
     */

    private String merchantCode;

    /**
     * 商户默认用户
     */
    private Boolean merchantDefaultUser;

    public String getOrganizationCode() {
        return organizationCode;
    }

    public void setOrganizationCode(String organizationCode) {
        this.organizationCode = organizationCode;
    }

    public String getOrganizationPath() {
        return organizationPath;
    }

    public void setOrganizationPath(String organizationPath) {
        this.organizationPath = organizationPath;
    }

    public String getOrganizationName() {
        return organizationName;
    }

    public void setOrganizationName(String organizationName) {
        this.organizationName = organizationName;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public LocalDateTime getInvalidDate() {
        return invalidDate;
    }

    public void setInvalidDate(LocalDateTime invalidDate) {
        this.invalidDate = invalidDate;
    }

    public String getFaceImgUrl() {
        return faceImgUrl;
    }

    public void setFaceImgUrl(String faceImgUrl) {
        this.faceImgUrl = faceImgUrl;
    }

    public String getMerchantCode() {
        return merchantCode;
    }

    public void setMerchantCode(String merchantCode) {
        this.merchantCode = merchantCode;
    }

    public Boolean getMerchantDefaultUser() {
        return merchantDefaultUser;
    }

    public void setMerchantDefaultUser(Boolean merchantDefaultUser) {
        this.merchantDefaultUser = merchantDefaultUser;
    }

    @Override
    public String toString() {
        return "UserDO{" +
                "id=" + id +
                ", creator=" + creator +
                ", createTime=" + createTime +
                ", updater=" + updater +
                ", updateTime=" + updateTime +
                ", flag=" + flag +
                ", name=" + name +
                ", code=" + code +
                ", number=" + number +
                ", tenantCode=" + tenantCode +
                ", organizationCode=" + organizationCode +
                ", organizationPath=" + organizationPath +
                ", organizationName=" + organizationName +
                ", phone=" + phone +
                ", password=" + password +
                ", sex=" + sex +
                ", email=" + email +
                ", state=" + state +
                ", invalidDate=" + invalidDate +
                ", faceImgUrl=" + faceImgUrl +
                ", merchantCode=" + merchantCode +
                ", merchantDefaultUser=" + merchantDefaultUser +
                "}";
    }
}
